const Route = require('koa-router')

const { upload,get,add,updata,remove,editorUpload,addArticle,getArticle,removeArticle,updataArticle,lookArticle,changeArticleState,updataPassword} = require('../../controller/pc_server/imgText')
const router = new Route()
router.post('/editorUpload',editorUpload)
router.post('/upload',upload)
router.post('/class/get', get)
router.post('/class/add', add)
router.post('/class/updata', updata)
router.post('/class/remove', remove)
router.post('/article/add', addArticle)
router.post('/article/remove', removeArticle)
router.post('/article/get', getArticle)
router.post('/article/updata', updataArticle)
router.post('/article/look', lookArticle)
router.post('/article/change', changeArticleState)
router.post('/updataPassword',updataPassword)

module.exports = router